package com.example.ymm.modules1.entity.my.user;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.sql.Timestamp;


@Data
public class DbOrderItem implements Serializable {

    @TableId
    private String orderItemId;
    private String orderId;
    private String goodId;
    private String goodName;
    String mainImg;
    Integer integral;
    Integer num;//商品总数

    @TableField(exist = false)
    String userId;

    @TableField(exist = false)
    String userName;

    @TableField(exist = false)
    Integer status;

    @TableField(fill= FieldFill.INSERT)
    private Timestamp createTime;

    @TableField(fill=FieldFill.INSERT_UPDATE)
    private Timestamp updateTime;



}
